How to combine recurring payment and single payment in one order [dibs]?
Hi guys!
I stuck with next problem:
On my website I have online shop, there I can buy products of 2 types: virtual(subscription) and physical(shoes etc).
User should have a possibility to buy combined bundle of vritual + physical products.
The issue is: 1) that virtual products doesn't have a shippment, and physical does. so subscription should be assigned to user immediatley after purchase (order status completed), but physical product price should be acquired after completing shipment(order status pending and then completed)
2) virtual products (subscriptions) should be recurring, physical doesn't
As payment provider, I'm using dibs payment window, so I can perform recurring payments(only for subscriptions) or single payments(only for physical), but can't for both.
This is more a matter of whether DIBS supports this. By default our providers assume either a recurring payment plan or a standard payment, not both at the same time so you will have to code a bit to accommodate this scenario. Before doing so however you'll want to check up and see if DIBS will support this at all.
I know other services like PayPal will so it's not unreasonable to expect DIBS to do so.
To clarify: DIBS specifically requires you to do an initial "ticket" authorization, which you can then do further captures on (these are your actual transactions on the credit card).
DIBS enables you to do multiple transaction per auth ticket and thus you can easily split up the capture process into multiple transaction: One for the digital part and one for the physical part shipped later.
DIBS will not automatically do recurring payments on their end but rather relies on you to do the continued capture every month, year, or whatever recurring interval you're using so you'll need a way on the uCommerce end to figure out which payments should recur.
I'd tie this to order status + payment status and have a little batch job that finds "active orders" (maybe do a new order status for this) and payments on thos orders which are "Authorized" from there I would create a new payment for each new capture with the amount from the "Authorized" payment and the transactionid (this would be the ticket id you get back upon initial ticket auth) copied to the new payment and then run capture on the newly created payments.
How to combine recurring payment and single payment in one order [dibs]?
Hi guys!
I stuck with next problem:
On my website I have online shop, there I can buy products of 2 types: virtual(subscription) and physical(shoes etc).
User should have a possibility to buy combined bundle of vritual + physical products.
The issue is: 1) that virtual products doesn't have a shippment, and physical does. so subscription should be assigned to user immediatley after purchase (order status completed), but physical product price should be acquired after completing shipment(order status pending and then completed)
2) virtual products (subscriptions) should be recurring, physical doesn't
As payment provider, I'm using dibs payment window, so I can perform recurring payments(only for subscriptions) or single payments(only for physical), but can't for both.
Hi Roman,
This is more a matter of whether DIBS supports this. By default our providers assume either a recurring payment plan or a standard payment, not both at the same time so you will have to code a bit to accommodate this scenario. Before doing so however you'll want to check up and see if DIBS will support this at all.
I know other services like PayPal will so it's not unreasonable to expect DIBS to do so.
To clarify: DIBS specifically requires you to do an initial "ticket" authorization, which you can then do further captures on (these are your actual transactions on the credit card).
DIBS enables you to do multiple transaction per auth ticket and thus you can easily split up the capture process into multiple transaction: One for the digital part and one for the physical part shipped later.
DIBS will not automatically do recurring payments on their end but rather relies on you to do the continued capture every month, year, or whatever recurring interval you're using so you'll need a way on the uCommerce end to figure out which payments should recur.
I'd tie this to order status + payment status and have a little batch job that finds "active orders" (maybe do a new order status for this) and payments on thos orders which are "Authorized" from there I would create a new payment for each new capture with the amount from the "Authorized" payment and the transactionid (this would be the ticket id you get back upon initial ticket auth) copied to the new payment and then run capture on the newly created payments.
Hope this helps.
is working on a reply...